package android.slc.module.user.repository.local.sp;

import android.slc.box.db.sp.DpManager;

public class AccountSp extends DpManager {

    private static class Holder {
        private static final AccountSp INSTANCE = new AccountSp();
    }

    public static AccountSp getInstance() {
        return AccountSp.Holder.INSTANCE;
    }

    private AccountSp() {
        super("account");
    }

    public String getAccount() {
        return dp.getString("account", null);
    }

    public void saveAccount(String account) {
        dp.putValue("account", account);
    }

    public String getPassword() {
        return dp.getString("password", null);
    }

    public void savePassword(String password) {
        dp.putValue("password", password);
    }
}
